import {request} from '@/util/request.js'

//上传头像
export function uploadAppOfAvatar(data) {
	return request({
		url: '/business/app/help/uploadAppOfAvatar',
		method: 'POST',
		data
	})
}

//退出登录
export function appLogout(data) {
	return request({
		url: '/business/app/login/appLogout',
		method: 'POST',
		data
	})
}

//消息列表接口
export function getMessageList(data) {
	return request({
		url: '/szcg/common/push/messageList',
		method: 'POST',
		data
	})
}

//统计未读消息
export function getCountUnRead(data) {
	return request({
		url: '/szcg/common/push/countUnRead?userId=' + data.userId,
		method: 'GET'
	})
}

//修改消息为已读状态
export function outRead(data) {
	return request({
		url: '/szcg/common/push/read',
		method: 'POST',
		data
	})
}

//打卡提交
export function submitpinchsign(data) {
	return request({
		url: '/business/app/clockin/sign',
		method: 'POST',
		data
	})
}
